java.lang.Objectgreenfoot.Actor
TomatoPile
public class TomatoPile
A pile of tomatoes.
Constructor Summary | |
---|---|
TomatoPile(int tomatoes)
Create a pile of a given number of tomatoes. |
Method Summary | |
---|---|
void |
takeOne()
Remove a tomato from this pile. |
Methods inherited from class greenfoot.Actor |
---|
act, addedToWorld, getImage, getIntersectingObjects, getNeighbours, getObjectsAtOffset, getObjectsInRange, getOneIntersectingObject, getOneObjectAtOffset, getRotation, getWorld, getX, getY, intersects, setImage, setImage, setLocation, setRotation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TomatoPile(int tomatoes)
Method Detail |
---|
public void takeOne()